package com.lhdx.practical.service;

import com.lhdx.practical.bean.StudentGroup;
import org.springframework.data.domain.Page;

import java.util.List;

public interface StudentGroupService {
    void save(StudentGroup studentGroup);
    /**
     * 删除小组
     * @param id
     */
    void deleteByID(long id);

    StudentGroup findById(long id);

    StudentGroup findByFounderid(long founderid);


    Page<StudentGroup> getResultList(long departid,int state,long gradeid, int page, int pagesize);

    /**
     * 获取班级下所有小组
     * @param departid
     * @param state
     * @return
     */
    List<StudentGroup> findAllByDepartid(long departid,int state);

    /**
     * 修改小组人数
     * @param id
     * @param groupcount
     */
    void updateGroupCount(long id,int groupcount);

    /**
     * 修改小组状态
     * @param id
     * @param state
     */
    void updateState(long id,int state);


}
